﻿using Domain.Model;
using Infrastructure.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepositories
{
    /// <summary>
    /// 用户仓储接口
    /// <remarks></remarks>
    /// </summary>
    public interface IUserRepository : IRepository<User>, ICRUDPable<User>
    {
        /// <summary>
        /// 用户登录
        /// 失败则返回null
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="password">原始密码</param>
        /// <param name="message">返回消息</param>
        /// <returns></returns>
        User Login(string userName, string password, out string message);

        User Login1(string userName, string password, out string message);
        int OutExcle();
    }
}
